package com.ruoyi.userr.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户关注关系对象 user_follow
 * 
 * @author sr
 * @date 2025-08-15
 */
public class UserFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关注记录ID */
    private Integer id;

    /** 关注者的用户ID */
    @Excel(name = "关注者的用户ID")
    private Integer followerId;

    /** 被关注者的用户ID */
    @Excel(name = "被关注者的用户ID")
    private Integer followedId;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    /** 被关注者的用户信息（一对一关联） */
    private Users followedUser;  // 存储被关注者的详细信息
    private Users followerUser;

    public Users getFollowerUser() {
        return followerUser;
    }

    public void setFollowerUser(Users followerUser) {
        this.followerUser = followerUser;
    }

    public Users getFollowedUser() {
        return followedUser;
    }

    public void setFollowedUser(Users followedUser) {
        this.followedUser = followedUser;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setFollowerId(Integer followerId) 
    {
        this.followerId = followerId;
    }

    public Integer getFollowerId() 
    {
        return followerId;
    }

    public void setFollowedId(Integer followedId) 
    {
        this.followedId = followedId;
    }

    public Integer getFollowedId() 
    {
        return followedId;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("followerId", getFollowerId())
            .append("followedId", getFollowedId())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
